package kr.hkit.powerjava.chapter22.collection;

import java.util.ArrayList;


public class ArrayListTest {
	public static void main(String[] args) {
		ArrayList<String> arList = new ArrayList<>();
		
		arList.add("MIKE");
		
		ArrayList<String> subList =new ArrayList<>();
		
		subList.add("BREAD");
		subList.add("BUTTER");
		
		arList.addAll(subList);
		arList.add(1, "APPLE");
		
		Object[] arr =(String[])arList.toArray();
		for(int i=0;i<arr.length;i++){
			System.out.println(arr[i]+"\t");
		}
		
		
//		boolean result = arList.contains("BREAD");
//		arList.remove(1);
//		arList.remove("BREAD");
//		
//		System.out.println(result);
//		
//		for(Strin)
		
	}
}
